docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TFFrame

    A lightweight, pose-only transform snapshot (position and rotation) without any associated GameObject. Used to represent individual timestamped poses in a TFStream.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Global Namespace
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    public struct TFFrame

    Constructors

    TFFrame(Vector3, Quaternion)

    Initializes a new TFFrame with the specified translation and rotation.

    Declaration
    public TFFrame(Vector3 translation, Quaternion rotation)
    Parameters
    Type Name Description
    Vector3 translation

    The position in Unity (RUF) space.

    Quaternion rotation

    The orientation in Unity (RUF) space.

    Fields

    identity

    A TFFrame at the world origin with no rotation.

    Declaration
    public static TFFrame identity
    Field Value
    Type Description
    TFFrame

    rotation

    The rotation component of this frame, in Unity (RUF) world space.

    Declaration
    public Quaternion rotation
    Field Value
    Type Description
    Quaternion

    translation

    The translation component of this frame, in Unity (RUF) world space.

    Declaration
    public Vector3 translation
    Field Value
    Type Description
    Vector3

    Methods

    Compose(TFFrame)

    Composes this frame with a child frame, producing the child's pose in the same coordinate system as this frame.

    Declaration
    public TFFrame Compose(TFFrame child)
    Parameters
    Type Name Description
    TFFrame child

    The child frame to compose.

    Returns
    Type Description
    TFFrame

    The composed world-space frame.

    InverseTransformPoint(Vector3)

    Transforms a world-space point into this frame's local space.

    Declaration
    public Vector3 InverseTransformPoint(Vector3 point)
    Parameters
    Type Name Description
    Vector3 point

    The world-space point to transform.

    Returns
    Type Description
    Vector3

    The local-space position of the point.

    Lerp(TFFrame, TFFrame, float)

    Linearly interpolates between two TFFrame values.

    Declaration
    public static TFFrame Lerp(TFFrame a, TFFrame b, float lerp)
    Parameters
    Type Name Description
    TFFrame a

    The start frame.

    TFFrame b

    The end frame.

    float lerp

    The interpolation factor in [0, 1].

    Returns
    Type Description
    TFFrame

    The interpolated frame.

    TransformPoint(Vector3)

    Transforms a point from local space into this frame's world space.

    Declaration
    public Vector3 TransformPoint(Vector3 point)
    Parameters
    Type Name Description
    Vector3 point

    The local-space point to transform.

    Returns
    Type Description
    Vector3

    The world-space position of the point.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)